/*
 *
 *  * | Licensed 未经许可不能去掉「OPENIITA」相关版权
 *  * +----------------------------------------------------------------------
 *  * | Author: xw2sy@163.com
 *  * +----------------------------------------------------------------------
 *
 *  Copyright [2024] [OPENIITA]
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 * /
 */
package cc.iotkit.data.model;

import cc.iotkit.model.map.MapFenceDevices;
import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

@Data
@Entity
@ApiModel(value = "电子围栏设备列表")
@Table(name = "map_fence_devices")
@AutoMapper(target = MapFenceDevices.class)
@DynamicUpdate
@DynamicInsert
public class TbMapFenceDevices {
    @Id
    @GeneratedValue(generator = "SnowflakeIdGenerator")
    @GenericGenerator(name = "SnowflakeIdGenerator", strategy = "cc.iotkit.data.config.id.SnowflakeIdGenerator")
    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "电子围栏ID")
    @Column(updatable = false)
    private Long pid;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "租户ID")
    @Column(updatable = false)
    private Long tenantId;
    /**
     * 所属平台用户ID
     */
    @ApiModelProperty(value = "用户ID")
    @Column(updatable = false)
    private Long uid;

    @ApiModelProperty(value = "创建部门")
    @Column(updatable = false)
    private Long createDept;

    @ApiModelProperty(value = "创建时间")
    @Column(updatable = false)
    private Long createAt;

    @ApiModelProperty(value = "创建人")
    @Column(updatable = false)
    private Long createBy;

    @ApiModelProperty(value = "修改时间")
    @Column(updatable = false)
    private Long updateAt;

    @ApiModelProperty(value = "修改人")
    @Column(updatable = false)
    private Long updateBy;

    @ApiModelProperty(value = "高德终端id")
    private String amapTid;

    @ApiModelProperty(value = "设备id")
    private String deviceId;

    //高德围栏id
    @ApiModelProperty(value = "高德围栏id")
    private Integer gfid;
}